﻿

<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	BusMaterialAccountKilSearchEvent event = (BusMaterialAccountKilSearchEvent)context.getSessionValue("BusMaterialAccountKilSearchEvent");
	ObjectList list = BusMaterialAccountKil.fetch().search(con,event);
%>

<!--********************* Part3:JavaScript Code ***************-->
<!--start 客户端脚本区域-->
<script language=javascript>

var list_code = "listBusMaterialAccountKil";

function doSearch()
{

	SetValue("s_Id",GetValue("i_Id")); //序号

	SetValue("s_WarehouseCode",GetValue("i_WarehouseCode")); //仓库编码

	SetValue("s_BusTypeCode",GetValue("i_BusTypeCode")); //车型编码

	SetValue("s_BusCategoryCode",GetValue("i_BusCategoryCode")); //车类编码

	SetValue("s_BusTag",GetValue("i_BusTag")); //车牌号

	SetValue("s_RepairenTime",GetValue("i_RepairenTime")); //维修时间

	SetValue("s_KilRepairedMoney",GetValue("i_KilRepairedMoney")); //千公里维修费用
	

	SetValue("s_OrderField",GetValue("i_OrderField")); //排序
	SetValue("s_OrderDesc",getCheckBoxValues("i_OrderDesc")); //升降序
	doCommonSearch();
}

function bizViewBusMaterialAccountKil(id)
{
	viewWin("<%=Config.getSrv()%>?action_code=viewBusMaterialAccountKil&Id="+id);
}

function doDelete()
{
	if(!hasChooseRadio("ids"))
	{
		bizMessage("删除","车辆维修材料费用");
		return false;
	}
	if(!bizConfirm("删除","车辆维修材料费用")) return false;
	SetAction("deleteBusMaterialAccountKil");
	frm.submit();
}

function doToAdd()
{
	SetAction("toAddBusMaterialAccountKil");
	frm.submit();
}

function doToUpdate()
{
	if(!checkOne("ids")) 
	{
		bizMessage("修改","车辆维修材料费用");
		return false;
	}
	SetValue("Id",getCheckBoxValue("ids"));
	SetAction("toUpdateBusMaterialAccountKil");
	frm.submit();
}
function doToCopy()
{
	if(!checkOne("ids")) 
	{
		bizMessage("复制","车辆维修材料费用");
		return false;
	}
	SetValue("Id",getCheckBoxValue("ids"));
	SetAction("toCopyBusMaterialAccountKil");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSearch);
</script>


<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->
<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code" value="">
<input type=hidden name="Id" value="">
<input type=hidden name=sortOrder value="1">

<!--查询条件保留区域-->

<input type=hidden name="s_Id" value="<%=event.getId()%>"> <!--序号-->

<input type=hidden name="s_WarehouseCode" value="<%=event.getWarehouseCode()%>"> <!--仓库编码-->

<input type=hidden name="s_BusTypeCode" value="<%=event.getBusTypeCode()%>"> <!--车型编码-->

<input type=hidden name="s_BusCategoryCode" value="<%=event.getBusCategoryCode()%>"> <!--车类编码-->

<input type=hidden name="s_BusTag" value="<%=event.getBusTag()%>"> <!--车牌号-->

<input type=hidden name="s_RepairenTime" value="<%=event.getRepairenTime()%>"> <!--维修时间-->

<input type=hidden name="s_KilRepairedMoney" value="<%=event.getKilRepairedMoney()%>"> <!--千公里维修费用-->


<%@ include file="/framework/list_head.jsp"%>

<br>
<!--********************* Part5:Search Area ***************-->
<%=uiSearchStart%>>
<%
	int key_tab = 1 ;
%>


	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			序号：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_Id" size="20" value="<%=event.viewId()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			仓库编码：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_WarehouseCode" size="20" value="<%=event.viewWarehouseCode()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			车型编码：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_BusTypeCode" size="20" value="<%=event.viewBusTypeCode()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			车类编码：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_BusCategoryCode" size="20" value="<%=event.viewBusCategoryCode()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			车牌号：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_BusTag" size="20" value="<%=event.viewBusTag()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			维修时间：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_RepairenTime" size="20" value="<%=event.viewRepairenTime()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>

	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			千公里维修费用：
		</td>
		<%=uiSearchInputTDHead%>>
			<input type="text" class="texts" name="i_KilRepairedMoney" size="20" value="<%=event.viewKilRepairedMoney()%>" key_tab="<%=key_tab++%>">
		</td>		
	</tr>


	<%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%>>
			按排序：
		</td>
		<%=uiSearchInputTDHead%>>	
			<select name="i_OrderField">
				<option value="" <%=(event.getOrderField().equals("1"))?"selected":""%>>设置排序字段</option>
				
				<option value="ID" <%=(event.getOrderField().equals("ID"))?"selected":""%>>序号</option>
				
				<option value="WAREHOUSE_CODE" <%=(event.getOrderField().equals("WAREHOUSE_CODE"))?"selected":""%>>仓库编码</option>
				
				<option value="BUS_TYPE_CODE" <%=(event.getOrderField().equals("BUS_TYPE_CODE"))?"selected":""%>>车型编码</option>
				
				<option value="BUS_CATEGORY_CODE" <%=(event.getOrderField().equals("BUS_CATEGORY_CODE"))?"selected":""%>>车类编码</option>
				
				<option value="BUS_TAG" <%=(event.getOrderField().equals("BUS_TAG"))?"selected":""%>>车牌号</option>
				
				<option value="REPAIREN_TIME" <%=(event.getOrderField().equals("REPAIREN_TIME"))?"selected":""%>>维修时间</option>
				
				<option value="KIL_REPAIRED_MONEY" <%=(event.getOrderField().equals("KIL_REPAIRED_MONEY"))?"selected":""%>>千公里维修费用</option>
				
			</select>
			&nbsp;&nbsp;
			<input type="radio" name="i_OrderDesc" value="false" <%=(event.isOrderDesc()==false)?"checked":""%> >升序
			<input type="radio" name="i_OrderDesc" value="true"  <%=(event.isOrderDesc()==true)?"checked":""%>  >降序
			<input type="button" value="查询" class="buttons" onclick="doSearch();return false;">&nbsp;<input type="button" value="清空" class="buttons" onclick="doClearEvent();return false;">
		</td>
	</tr>

<%=uiSearchEnd%>

<!--列表标题-->
<%=UIManager.addListHeadTitle("车辆维修材料费用列表")%>

<!--********************* Part6:List Area ***************-->

<%=uiListStart%>>

<%@ include file="/framework/list_foot.jsp"%>

<%
	int index = 1 ;
%>	
	<%=uiListHeadTR%>>
		<%=UIManager.addListHeadCheckBox() %>

		<%=UIManager.addListHead("序号",index++)%>

		<%=UIManager.addListHead("仓库编码",index++)%>

		<%=UIManager.addListHead("车型编码",index++)%>

		<%=UIManager.addListHead("车类编码",index++)%>

		<%=UIManager.addListHead("车牌号",index++)%>

		<%=UIManager.addListHead("维修时间",index++)%>

		<%=UIManager.addListHead("千公里维修费用",index++,"num")%>
     
		<%=UIManager.addListHead("操作",-1)%>  
	<%=uiListHeadTREnd%>>
	
	<!--data-->
<%
	for(int i=0;i<list.size();i++)
	{
		BusMaterialAccountKil obj = (BusMaterialAccountKil)list.get(i);
%>
	<%=uiListDataTR[i%2]%> align=center>
    	<%=uiListDataTD%>>
    		<input type="checkbox" name="ids" value="<%=obj.getId()%>">
    	</td>
    	
    
    	<%=uiListDataTD%>><%=obj.viewId(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewWarehouseCode(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewBusTypeCode(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewBusCategoryCode(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewBusTag(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewRepairenTime(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewKilRepairedMoney(con)%></td>
        

    	<%=uiListDataTD%>>
    		<a href="" onclick="bizViewBusMaterialAccountKil('<%=obj.getId()%>');return false;">浏览</a>
    	</td>
  	</tr>
<%	
	}
%>  

<%@ include file="/framework/list_foot2.jsp"%>

<%=uiListEnd%>


<!--********************* Part7:Action Area ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
		<%=uiCommandTD%>>
		<input type=button value="    添加   " class="buttons" onclick="doToAdd();return false;">
		<!--
		<input type=button value="    复制   " class="buttons" onclick="doToCopy();return false;">
		-->
		<input type=button value="    修改   " class="buttons" onclick="doToUpdate();return false;">
		<input type=button value="    删除   " class="buttons" onclick="doDelete();return false;">
		</td>
	</tr>	
<%=uiCommandEnd%>
</form>


<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :Benny
	FileName  :/system/base/BusMaterialAccountKilList.jsp
-->
